<?php
  $country = ["zh", "en", "yue", "jp", "kor", "fra", "spa", "th", "ara", "ru", "pt", "de", "it", "el", "nl", "pl", "bul", "est", "dan", "fin", "cs", "rom", "slo", "swe", "hu", "cht", "vie"];
  $hostname = $_SERVER['HTTP_HOST'];
  $subdomain = explode('.', $hostname)[0];
  $language = 'en';
  if (in_array($subdomain, $country)) {
      $language = $subdomain;
  }
  ?>
<?php $duoyuyan=dr_site_value('duoyuyan');?>
<?php $smxx=dr_site_value('smxx');?>
<!DOCTYPE HTML>
<html>

<head>
  <meta charset="utf-8">
  <title>{usu_fanyi($seo_title, $language)}</title>
  <meta content="{usu_fanyi($meta_keywords, $language)}" name="keywords" />
  <meta content="{usu_fanyi($seo_des, $language)}" name="description" />
  <script type="text/javascript">
      var is_mobile_cms = '{IS_MOBILE}';
      var web_dir = '{WEB_DIR}';
  </script>
  <script src="{LANG_PATH}lang.js" type="text/javascript"></script>
  <script src="{THEME_PATH}assets/global/plugins/jquery.min.js" type="text/javascript"></script>
  <script src="{THEME_PATH}assets/js/cms.js" type="text/javascript"></script>
  {SITE_TONGJI}
  <link href="{SITE_LOGO}" rel="shortcut icon" type="image/x-icon">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta content="yes" name="apple-mobile-web-app-capable">
  <meta content="yes" name="apple-touch-fullscreen">
  <meta content="initial-scale=1.0, minimum-scale=1.0, maximum-scale=2.0, user-scalable=no, width=device-width"
    name="viewport">
  <link rel="stylesheet" href="{HOME_THEME_PATH}css/font-awesome.css">
  <link rel="stylesheet" href="{HOME_THEME_PATH}css/global.css">
  <link rel="stylesheet" href="{HOME_THEME_PATH}css/widget.css">
  <link rel="stylesheet" href="{HOME_THEME_PATH}css/variouscomponents.css">
  <link rel="stylesheet" href="{HOME_THEME_PATH}css/images.css">
  <link rel="stylesheet" href="{HOME_THEME_PATH}css/theme.css">
  <link rel="stylesheet" href="{HOME_THEME_PATH}css/color_0.css">
  <script src="{HOME_THEME_PATH}js/jquery.min.js"></script>
  <!--[if !IE]><!-->
  <script src="{HOME_THEME_PATH}js/base.js"></script>
  <link href="{HOME_THEME_PATH}css/lightbox.min.css" rel="stylesheet">
  <script src="{HOME_THEME_PATH}js/jquery.superslide.js"></script>
  <script src="{HOME_THEME_PATH}js/common.js"></script>
  <script src="{HOME_THEME_PATH}js/theme.js"></script>
  <!-- feib -->
  <script type="text/javascript" src="{HOME_THEME_PATH}js/layer.js"></script>
  <script type="text/javascript" src="{HOME_THEME_PATH}js/language.js"></script>
  <!-- plugins -->
  <script type="text/javascript" src="{HOME_THEME_PATH}js/jquery.formsvalidation.js"></script>
  <script type="text/javascript" src="{HOME_THEME_PATH}js/jquery.nodecommon.js"></script>
  <script type="text/javascript" src="{HOME_THEME_PATH}js/extend.js"></script>
  <link rel="stylesheet" href="{HOME_THEME_PATH}css/animate.min.css">
  <script src="{HOME_THEME_PATH}js/animate.min.js"></script>
  <script type="text/javascript" src="{HOME_THEME_PATH}js/components.js"></script>
  <script type="text/javascript" src="{HOME_THEME_PATH}js/jquery.menu_style.js"></script>
  <script type="text/javascript" src="{HOME_THEME_PATH}js/jquery.init.js"></script>
  <script type="text/javascript">
    $(function () {
      dataAnimate();
      (function ($, lanno) {
        if (lanno === "" || lanno === "default") {
          return '';
        }
        $(".w-languege").each(function () {
          $(this).find("a").each(function () {
            if ($(this).data("lanno") === lanno) {
              $(this).addClass("cur");
            } else {
              if ($(this).hasClass("cur")) {
                $(this).removeClass("cur");
              }
            }
          });
        });
      })(jQuery, "cn");
    });
  </script>
</head>
